package com.ins1st.modules.blog.entity;

import java.util.Date;

import org.apache.ibatis.type.Alias;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

@Alias("Article")
public class Article {

	// ID
	@TableId(type = IdType.AUTO)
	private Long id;
	// 标题
	private String title;
	// 发布时间
	private Date ctime = new Date();
	// 内容
	private String content;
	// 作者
	private Integer author;
	// 阅读量
	private Integer readcnt = 0;
	// 点赞量
	private Integer likecnt = 0;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getAuthor() {
		return author;
	}

	public void setAuthor(Integer author) {
		this.author = author;
	}

	public Integer getReadcnt() {
		return readcnt;
	}

	public void setReadcnt(Integer readcnt) {
		this.readcnt = readcnt;
	}

	public Integer getLikecnt() {
		return likecnt;
	}

	public void setLikecnt(Integer likecnt) {
		this.likecnt = likecnt;
	}
}
